package model;

import java.io.Serializable;
import javax.persistence.*;

import java.sql.Timestamp;

/**
 * The persistent class for the END_PT_SCD database table.
 * 
 */
@Entity
@Table(name = "END_PT_SCD")
public class EndPtScd implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "END_PT_SCD_ID")
	private long endPtScdId;

	@Column(name = "EFF_TS")
	private Timestamp effTs;

	@Column(name = "END_PT_NAME")
	private String endPtName;

	@Column(name = "EXP_TS")
	private Timestamp expTs;

	// bi-directional many-to-one association to EndPt
	@ManyToOne(cascade = { CascadeType.ALL })
	@JoinColumn(name = "END_PT_ID", nullable = false, updatable = false)
	private EndPt endPt;

	public EndPtScd() {
	}

	public long getEndPtScdId() {
		return this.endPtScdId;
	}

	public void setEndPtScdId(long endPtScdId) {
		this.endPtScdId = endPtScdId;
	}

	public Timestamp getEffTs() {
		return this.effTs;
	}

	public void setEffTs(Timestamp effTs) {
		this.effTs = effTs;
	}

	public String getEndPtName() {
		return this.endPtName;
	}

	public void setEndPtName(String endPtName) {
		this.endPtName = endPtName;
	}

	public Timestamp getExpTs() {
		return this.expTs;
	}

	public void setExpTs(Timestamp expTs) {
		this.expTs = expTs;
	}

	public EndPt getEndPt() {
		return this.endPt;
	}

	public void setEndPt(EndPt endPt) {
		this.endPt = endPt;
	}

}